﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page 
{
	private SqlConnection _connection = new SqlConnection();

    protected void Page_Load(object sender, EventArgs e)
    {


    }
	protected void Button1_Click(object sender, EventArgs e)
	{
		string strConnectionString = "server=127.0.0.1;uid=sa;pwd=liuxiaozeng;database=NorthwindCHS";
		_connection.ConnectionString = strConnectionString;

		SqlDataAdapter dataAdapter = new SqlDataAdapter("SELECT * FROM 产品", _connection);
		DataSet ds = new DataSet();
		dataAdapter.Fill(ds, "Product");

	
	}
}
